#ifndef	__e7convert_h__
#define	__e7convert_h__

#include <string>	// gnu c++ basic type 'string'
using namespace std;

/** Universal utility functions for type convertions
 *  from unix-v7 floppie to local gnu-c++
 */

typedef unsigned char byte;

// 16 bit short int
extern short getshort(byte buffer[], int &offset);

// 24 bit "packed" long int
extern int getlong3(byte buffer[], int &offset);

// 32 bit long int
extern long getlong(byte buffer[], int &offset);
extern long getlong4(byte buffer[], int &offset);

// een reeks van ascii chars
extern string getchars(byte buffer[], int &offset, int length);

extern byte getbyte(byte buffer[], int &offset);

#endif	/*e7convert_h*/
